# Reproduction Files for "Doing What Others Do: Norms, Science, and Collective Action on Global Warming"

## File contents

This repository contains the following files:

Main Files:

 - `README.md`: this file
 - `preprint.docx`: a pre-typesetting preprint of the final article

Data:

 - `gsu2010-data.csv`: the pre-processed data file for Experiment 1
 - `gsu2011-data.csv`: the pre-processed data file for Experiment 1

Code files for R:

 - `gsu2010-cleaning.R`: the code that generates `gsu2010-data.csv` from the (unpublished) raw data file
 - `gsu2011-cleaning.R`: the code that generates `gsu2011-data.csv` from the (unpublished) raw data file
 - `functions.R`: an R file that contains some functions used in the analysis
 - `gsu2010-analysis.R`: the main analysis code for Experiment 1
 - `gsu2011-analysis.R`: the main analysis code for Experiment 2

## Data Description

The data file for Experiment 1 (`gsu2010-data.csv`) contains the following variables:

 - `condition`: an integer 1-5 indicating experimental condition
    - 1: control
    - 2: pro norm/descriptive
    - 3: pro norm/descriptive+injunctive
    - 4: con norm/descriptive
    - 5: con norm/descriptive+injunctive
 - Outcome measures, all scaled -1 to +1 with higher scores indicating agreement, as reported in the paper
    - `global_warming`
    - `human_induced` (1 means human caused, -1 means naturally caused)
    - `supper_cap`
    - `smallercar`
    - `ce_ppi`
    - `ce_er`
 - Covariates:
    - `partyid`: party identification on 7-point scale where -1 = Republican, 0 = Independent, +1 = Democrat
    - `ideology`: ideology on 7-point scale where -1 = conservative, 0 = moderate, +1 = liberal

The data file for Experiment 2 (`gsu2011-data.csv`) contains the following variables:

 - `Condition`: an integer 1-6 indicating experimental condition
    - 1: control (no information + no norm)
    - 2: no information + social norm
    - 3: scientific consensus information + no norm
    - 4: scientific consensus information + social norm
    - 5: politicized science information + no norm (not used in analysis)
    - 6: politicized science information + social norm (not used in analysis)
 - Outcome measures, all scaled -1 to +1 with higher scores indicating agreement, as reported in the paper
    - `Increase`
    - `Decrease`
    - `PersonalAction`
    - `EmissionCap`
    - `Email` (integer 0 or 1; 1 indicating willingness to receive an email)
    - `GWBelief`
    - `GWHuman`
    - `AdaptPrevent`
 - Covariates:
    - `attentive`: an integer indicating whether respondent was attentive to an attention check question (unfortunately the use of this was not correctly reported in the paper; reported data are subsetted to those who were attentive)
    - `partyid`: party identification on 7-point scale where -1 = Republican, 0 = Independent, +1 = Democrat
    - `partyidimp`: a measure of party identification importance, ranging from -1 = extremely unimportant to +1 = extremely important
    - `ideology`: ideology on 7-point scale where -1 = conservative, 0 = moderate, +1 = liberal
    - `sex`: 0=male, 1=female
    - `age`: age in years
    - `knowledge`: number of factual political knowledge questions answered correctly (0-9); see `gsu2011-cleaning.R` for coding
    - `knowledgebin`: an integer 0/1 splitting the above at 0-4 correct = 0 and 5-9 correct = 1


## Analysis

The results reported in the paper can be fully reproduced using the following code:

```R
# load some custom functions
source("functions.R")

# Experiment 1
## cleaning script (from raw data)
#source("GSU2010-cleaning.R")
## analysis script (from CSV)
source("GSU2010-analysis.R")

# Experiment 2
## cleaning script (from raw data)
#source("GSU2011-cleaning.R")
## analysis script (from CSV)
source("GSU2011-analysis.R")
```

